package com.ry.est.dao;

import com.ry.est.dto.MalfunctionDTO;
import com.ry.est.entity.Malfunction;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MalfunctionDao {
    int deleteByPrimaryKey(Long id);

    int insert(Malfunction record);

    int insertSelective(Malfunction record);

    Malfunction selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Malfunction record);

    int updateByPrimaryKey(Malfunction record);

    /**
     * 根据modelId查询故障信息
     * @param modelId
     * @param isDelete
     * @return
     */
    List<Malfunction> listByModelId(@Param("modelId") Long modelId, @Param("isDelete") Integer isDelete);


}